<?xml version="1.0" encoding="UTF-8"?>
<ticket>
  <assigned-user-id type="integer">11063</assigned-user-id>
  <attachments-count type="integer">0</attachments-count>
  <closed type="boolean">true</closed>
  <created-at type="datetime">2009-05-20T08:25:45-04:00</created-at>
  <creator-id type="integer">11063</creator-id>
  <milestone-due-on type="datetime" nil="true"></milestone-due-on>
  <milestone-id type="integer">40246</milestone-id>
  <number type="integer">4</number>
  <permalink>fwd-rical-another-small-problem</permalink>
  <priority type="integer">2</priority>
  <project-id type="integer">30941</project-id>
  <raw-data type="binary" nil="true" encoding="base64"></raw-data>
  <state>resolved</state>
  <tag nil="true"></tag>
  <title>Fwd: [RiCal] Another small problem</title>
  <updated-at type="datetime">2009-05-21T19:06:36-04:00</updated-at>
  <user-id type="integer">11063</user-id>
  <user-name>Rick DeNatale</user-name>
  <creator-name>Rick DeNatale</creator-name>
  <assigned-user-name>Rick DeNatale</assigned-user-name>
  <url>http://rick_denatale.lighthouseapp.com/projects/30941/tickets/4</url>
  <milestone-title>0.0.9</milestone-title>
  <original-body>From: psm42
Date: Wed, May 20, 2009 at 7:03 AM
Subject: [RiCal] Another small problem
To: RiCal &lt;rical_gem@googlegroups.com&gt;



Hi Rick and others,

Thanks for the last fix to the Date property value. &#160;I've found
another problem with it that you may want to look at. &#160;With the same
(slightly broken) icalendar file I used before, I've tried this:

cal = RiCal.parse_string(Net::HTTP.get(URI.parse('http://icalx.com/
public/rohanl/Australian32Holidays.ics')))
cal[0].events.each do |e|
&#160;puts e.occurrences(:count =&gt; 10).length
end

to exercise RiCal, and get this stack trace:

NoMethodError: undefined method `to_datetime' for #&lt;DateTime:
4908481/2,0,2299161&gt;
&#160; &#160; &#160; &#160;from /Users/paulsm/Projects/ri_cal/lib/ri_cal/property_value/date.rb:
141:in `send'
&#160; &#160; &#160; &#160;from /Users/paulsm/Projects/ri_cal/lib/ri_cal/property_value/date.rb:
141:in `method_missing'
&#160; &#160; &#160; &#160;from /Users/paulsm/Projects/ri_cal/lib/ri_cal/property_value/
date_time.rb:175:in `&lt;=&gt;'
&#160; &#160; &#160; &#160;from /Users/paulsm/Projects/ri_cal/lib/ri_cal/property_value/
recurrence_rule/enumeration_support_methods.rb:56:in `&gt;'
&#160; &#160; &#160; &#160;from /Users/paulsm/Projects/ri_cal/lib/ri_cal/property_value/
recurrence_rule/enumeration_support_methods.rb:56:in `exhausted?'
&#160; &#160; &#160; &#160;from /Users/paulsm/Projects/ri_cal/lib/ri_cal/property_value/
recurrence_rule/enumerator.rb:72:in `next_occurrence'
&#160; &#160; &#160; &#160;from /Users/paulsm/Projects/ri_cal/lib/ri_cal/
occurrence_enumerator.rb:112:in `each'
&#160; &#160; &#160; &#160;from /Users/paulsm/Projects/ri_cal/lib/ri_cal/
occurrence_enumerator.rb:135:in `to_a'
&#160; &#160; &#160; &#160;from /Users/paulsm/Projects/ri_cal/lib/ri_cal/
occurrence_enumerator.rb:135:in `to_a'
&#160; &#160; &#160; &#160;from /Users/paulsm/Projects/ri_cal/lib/ri_cal/
occurrence_enumerator.rb:154:in `occurrences'
&#160; &#160; &#160; &#160;from (irb):9
&#160; &#160; &#160; &#160;from (irb):8:in `each'
&#160; &#160; &#160; &#160;from (irb):8
&#160; &#160; &#160; &#160;from :0

It looks like a similar sort of problem.

--Paul</original-body>
  <latest-body>From: psm42
Date: Wed, May 20, 2009 at 7:03 AM
Subject: [RiCal] Another small problem
To: RiCal &lt;rical_gem@googlegroups.com&gt;



Hi Rick and others,

Thanks for the last fix to the Date property value. &#160;I've found
another problem with it that you may want to look at. &#160;With the same
(slightly broken) icalendar file I used before, I've tried this:

cal = RiCal.parse_string(Net::HTTP.get(URI.parse('http://icalx.com/
public/rohanl/Australian32Holidays.ics')))
cal[0].events.each do |e|
&#160;puts e.occurrences(:count =&gt; 10).length
end

to exercise RiCal, and get this stack trace:

NoMethodError: undefined method `to_datetime' for #&lt;DateTime:
4908481/2,0,2299161&gt;
&#160; &#160; &#160; &#160;from /Users/paulsm/Projects/ri_cal/lib/ri_cal/property_value/date.rb:
141:in `send'
&#160; &#160; &#160; &#160;from /Users/paulsm/Projects/ri_cal/lib/ri_cal/property_value/date.rb:
141:in `method_missing'
&#160; &#160; &#160; &#160;from /Users/paulsm/Projects/ri_cal/lib/ri_cal/property_value/
date_time.rb:175:in `&lt;=&gt;'
&#160; &#160; &#160; &#160;from /Users/paulsm/Projects/ri_cal/lib/ri_cal/property_value/
recurrence_rule/enumeration_support_methods.rb:56:in `&gt;'
&#160; &#160; &#160; &#160;from /Users/paulsm/Projects/ri_cal/lib/ri_cal/property_value/
recurrence_rule/enumeration_support_methods.rb:56:in `exhausted?'
&#160; &#160; &#160; &#160;from /Users/paulsm/Projects/ri_cal/lib/ri_cal/property_value/
recurrence_rule/enumerator.rb:72:in `next_occurrence'
&#160; &#160; &#160; &#160;from /Users/paulsm/Projects/ri_cal/lib/ri_cal/
occurrence_enumerator.rb:112:in `each'
&#160; &#160; &#160; &#160;from /Users/paulsm/Projects/ri_cal/lib/ri_cal/
occurrence_enumerator.rb:135:in `to_a'
&#160; &#160; &#160; &#160;from /Users/paulsm/Projects/ri_cal/lib/ri_cal/
occurrence_enumerator.rb:135:in `to_a'
&#160; &#160; &#160; &#160;from /Users/paulsm/Projects/ri_cal/lib/ri_cal/
occurrence_enumerator.rb:154:in `occurrences'
&#160; &#160; &#160; &#160;from (irb):9
&#160; &#160; &#160; &#160;from (irb):8:in `each'
&#160; &#160; &#160; &#160;from (irb):8
&#160; &#160; &#160; &#160;from :0

It looks like a similar sort of problem.

--Paul</latest-body>
  <original-body-html>&lt;div&gt;&lt;p&gt;From: psm42 Date: Wed, May 20, 2009 at 7:03 AM Subject: [RiCal]
Another small problem To: RiCal&lt;/p&gt;
&lt;p&gt;Hi Rick and others,&lt;/p&gt;
&lt;p&gt;Thanks for the last fix to the Date property value. &amp;nbsp;I've
found another problem with it that you may want to look at.
&amp;nbsp;With the same (slightly broken) icalendar file I used before,
I've tried this:&lt;/p&gt;
&lt;p&gt;cal =
RiCal.parse_string(Net::HTTP.get(URI.parse('http://icalx.com/
public/rohanl/Australian32Holidays.ics'))) cal[0].events.each do
|e| &amp;nbsp;puts e.occurrences(:count =&amp;gt; 10).length end&lt;/p&gt;
&lt;p&gt;to exercise RiCal, and get this stack trace:&lt;/p&gt;
&lt;p&gt;NoMethodError: undefined method &lt;code&gt;to_datetime' for # &amp;nbsp;
&amp;nbsp; &amp;nbsp; &amp;nbsp;from
/Users/paulsm/Projects/ri_cal/lib/ri_cal/property_value/date.rb:
141:in&lt;/code&gt;send' &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from
/Users/paulsm/Projects/ri_cal/lib/ri_cal/property_value/date.rb:
141:in &lt;code&gt;method_missing' &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from
/Users/paulsm/Projects/ri_cal/lib/ri_cal/property_value/
date_time.rb:175:in&lt;/code&gt;&amp;lt;=&amp;gt;' &amp;nbsp; &amp;nbsp; &amp;nbsp;
&amp;nbsp;from /Users/paulsm/Projects/ri_cal/lib/ri_cal/property_value/
recurrence_rule/enumeration_support_methods.rb:56:in &lt;code&gt;&amp;gt;'
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from
/Users/paulsm/Projects/ri_cal/lib/ri_cal/property_value/
recurrence_rule/enumeration_support_methods.rb:56:in&lt;/code&gt;exhausted?'
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from
/Users/paulsm/Projects/ri_cal/lib/ri_cal/property_value/
recurrence_rule/enumerator.rb:72:in &lt;code&gt;next_occurrence' &amp;nbsp;
&amp;nbsp; &amp;nbsp; &amp;nbsp;from /Users/paulsm/Projects/ri_cal/lib/ri_cal/
occurrence_enumerator.rb:112:in&lt;/code&gt;each' &amp;nbsp; &amp;nbsp; &amp;nbsp;
&amp;nbsp;from /Users/paulsm/Projects/ri_cal/lib/ri_cal/
occurrence_enumerator.rb:135:in &lt;code&gt;to_a' &amp;nbsp; &amp;nbsp; &amp;nbsp;
&amp;nbsp;from /Users/paulsm/Projects/ri_cal/lib/ri_cal/
occurrence_enumerator.rb:135:in&lt;/code&gt;to_a' &amp;nbsp; &amp;nbsp; &amp;nbsp;
&amp;nbsp;from /Users/paulsm/Projects/ri_cal/lib/ri_cal/
occurrence_enumerator.rb:154:in &lt;code&gt;occurrences' &amp;nbsp; &amp;nbsp;
&amp;nbsp; &amp;nbsp;from (irb):9 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from
(irb):8:in&lt;/code&gt;each' &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from (irb):8
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from :0&lt;/p&gt;
&lt;p&gt;It looks like a similar sort of problem.&lt;/p&gt;
&lt;p&gt;--Paul&lt;/p&gt;&lt;/div&gt;</original-body-html>
  <versions type="array">
    <version type="Ticket::Version">
      <assigned-user-id type="integer" nil="true"></assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>From: psm42
Date: Wed, May 20, 2009 at 7:03 AM
Subject: [RiCal] Another small problem
To: RiCal &lt;rical_gem@googlegroups.com&gt;



Hi Rick and others,

Thanks for the last fix to the Date property value. &#160;I've found
another problem with it that you may want to look at. &#160;With the same
(slightly broken) icalendar file I used before, I've tried this:

cal = RiCal.parse_string(Net::HTTP.get(URI.parse('http://icalx.com/
public/rohanl/Australian32Holidays.ics')))
cal[0].events.each do |e|
&#160;puts e.occurrences(:count =&gt; 10).length
end

to exercise RiCal, and get this stack trace:

NoMethodError: undefined method `to_datetime' for #&lt;DateTime:
4908481/2,0,2299161&gt;
&#160; &#160; &#160; &#160;from /Users/paulsm/Projects/ri_cal/lib/ri_cal/property_value/date.rb:
141:in `send'
&#160; &#160; &#160; &#160;from /Users/paulsm/Projects/ri_cal/lib/ri_cal/property_value/date.rb:
141:in `method_missing'
&#160; &#160; &#160; &#160;from /Users/paulsm/Projects/ri_cal/lib/ri_cal/property_value/
date_time.rb:175:in `&lt;=&gt;'
&#160; &#160; &#160; &#160;from /Users/paulsm/Projects/ri_cal/lib/ri_cal/property_value/
recurrence_rule/enumeration_support_methods.rb:56:in `&gt;'
&#160; &#160; &#160; &#160;from /Users/paulsm/Projects/ri_cal/lib/ri_cal/property_value/
recurrence_rule/enumeration_support_methods.rb:56:in `exhausted?'
&#160; &#160; &#160; &#160;from /Users/paulsm/Projects/ri_cal/lib/ri_cal/property_value/
recurrence_rule/enumerator.rb:72:in `next_occurrence'
&#160; &#160; &#160; &#160;from /Users/paulsm/Projects/ri_cal/lib/ri_cal/
occurrence_enumerator.rb:112:in `each'
&#160; &#160; &#160; &#160;from /Users/paulsm/Projects/ri_cal/lib/ri_cal/
occurrence_enumerator.rb:135:in `to_a'
&#160; &#160; &#160; &#160;from /Users/paulsm/Projects/ri_cal/lib/ri_cal/
occurrence_enumerator.rb:135:in `to_a'
&#160; &#160; &#160; &#160;from /Users/paulsm/Projects/ri_cal/lib/ri_cal/
occurrence_enumerator.rb:154:in `occurrences'
&#160; &#160; &#160; &#160;from (irb):9
&#160; &#160; &#160; &#160;from (irb):8:in `each'
&#160; &#160; &#160; &#160;from (irb):8
&#160; &#160; &#160; &#160;from :0

It looks like a similar sort of problem.

--Paul</body>
      <body-html>&lt;div&gt;&lt;p&gt;From: psm42&lt;br&gt;
Date: Wed, May 20, 2009 at 7:03 AM&lt;br&gt;
Subject: &lt;a href=&quot;/projects/30941/changesets/RiCal&quot; title=
&quot;Changeset [RiCal]&quot;&gt;[RiCal]&lt;/a&gt; Another small problem&lt;br&gt;
To: RiCal &lt;a&gt;rical_gem@googlegroups.com&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hi Rick and others,&lt;/p&gt;
&lt;p&gt;Thanks for the last fix to the Date property value. &amp;nbsp;I've
found&lt;br&gt;
another problem with it that you may want to look at. &amp;nbsp;With
the same&lt;br&gt;
(slightly broken) icalendar file I used before, I've tried
this:&lt;/p&gt;
&lt;p&gt;cal = RiCal.parse_string(Net::HTTP.get(URI.parse('&lt;a href=
&quot;http://icalx.com/&quot;&gt;http://icalx.com/&lt;/a&gt;&lt;br&gt;
public/rohanl/Australian32Holidays.ics')))&lt;br&gt;
cal[0].events.each do |e|&lt;br&gt;
&amp;nbsp;puts e.occurrences(:count =&amp;gt; 10).length&lt;br&gt;
end&lt;/p&gt;
&lt;p&gt;to exercise RiCal, and get this stack trace:&lt;/p&gt;
&lt;p&gt;NoMethodError: undefined method &lt;code&gt;to_datetime' for
#&amp;lt;DateTime:&amp;lt;br/&amp;gt; 4908481/2,0,2299161&amp;gt;&amp;lt;br/&amp;gt; &amp;nbsp;
&amp;nbsp; &amp;nbsp; &amp;nbsp;from
/Users/paulsm/Projects/ri_cal/lib/ri_cal/property_value/date.rb:&amp;lt;br/&amp;gt;
141:in&lt;/code&gt;send'&lt;br&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from
/Users/paulsm/Projects/ri_cal/lib/ri_cal/property_value/date.rb:&lt;br&gt;
141:in &lt;code&gt;method_missing'&amp;lt;br/&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&amp;nbsp;from
/Users/paulsm/Projects/ri_cal/lib/ri_cal/property_value/&amp;lt;br/&amp;gt;
date_time.rb:175:in&lt;/code&gt;&amp;lt;=&amp;gt;'&lt;br&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from
/Users/paulsm/Projects/ri_cal/lib/ri_cal/property_value/&lt;br&gt;
recurrence_rule/enumeration_support_methods.rb:56:in
&lt;code&gt;&amp;gt;'&amp;lt;br/&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from
/Users/paulsm/Projects/ri_cal/lib/ri_cal/property_value/&amp;lt;br/&amp;gt;
recurrence_rule/enumeration_support_methods.rb:56:in&lt;/code&gt;exhausted?'&lt;br&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from
/Users/paulsm/Projects/ri_cal/lib/ri_cal/property_value/&lt;br&gt;
recurrence_rule/enumerator.rb:72:in
&lt;code&gt;next_occurrence'&amp;lt;br/&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from
/Users/paulsm/Projects/ri_cal/lib/ri_cal/&amp;lt;br/&amp;gt;
occurrence_enumerator.rb:112:in&lt;/code&gt;each'&lt;br&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from
/Users/paulsm/Projects/ri_cal/lib/ri_cal/&lt;br&gt;
occurrence_enumerator.rb:135:in &lt;code&gt;to_a'&amp;lt;br/&amp;gt; &amp;nbsp;
&amp;nbsp; &amp;nbsp; &amp;nbsp;from
/Users/paulsm/Projects/ri_cal/lib/ri_cal/&amp;lt;br/&amp;gt;
occurrence_enumerator.rb:135:in&lt;/code&gt;to_a'&lt;br&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from
/Users/paulsm/Projects/ri_cal/lib/ri_cal/&lt;br&gt;
occurrence_enumerator.rb:154:in &lt;code&gt;occurrences'&amp;lt;br/&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from (irb):9&amp;lt;br/&amp;gt; &amp;nbsp; &amp;nbsp;
&amp;nbsp; &amp;nbsp;from (irb):8:in&lt;/code&gt;each'&lt;br&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from (irb):8&lt;br&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;from :0&lt;/p&gt;
&lt;p&gt;It looks like a similar sort of problem.&lt;/p&gt;
&lt;p&gt;--Paul&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-05-20T08:25:46-04:00</created-at>
      <creator-id type="integer">11063</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">4</number>
      <permalink>fwd-rical-another-small-problem</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">30941</project-id>
      <state>new</state>
      <tag nil="true"></tag>
      <title>Fwd: [RiCal] Another small problem</title>
      <updated-at type="datetime">2009-05-20T08:25:46-04:00</updated-at>
      <user-id type="integer">11063</user-id>
      <user-name>Rick DeNatale</user-name>
      <creator-name>Rick DeNatale</creator-name>
      <assigned-user-name nil="true"></assigned-user-name>
      <url>http://rick_denatale.lighthouseapp.com/projects/30941/tickets/4</url>
      <milestone-title nil="true"></milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">11063</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body></body>
      <body-html></body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-05-21T18:20:06-04:00</created-at>
      <creator-id type="integer">11063</creator-id>
      <diffable-attributes type="yaml">--- 
:assigned_user: 
:milestone: 
</diffable-attributes>
      <milestone-id type="integer">40246</milestone-id>
      <number type="integer">4</number>
      <permalink>fwd-rical-another-small-problem</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">30941</project-id>
      <state>new</state>
      <tag nil="true"></tag>
      <title>Fwd: [RiCal] Another small problem</title>
      <updated-at type="datetime">2009-05-21T18:20:12-04:00</updated-at>
      <user-id type="integer">11063</user-id>
      <user-name>Rick DeNatale</user-name>
      <creator-name>Rick DeNatale</creator-name>
      <assigned-user-name>Rick DeNatale</assigned-user-name>
      <url>http://rick_denatale.lighthouseapp.com/projects/30941/tickets/4</url>
      <milestone-title>0.0.9</milestone-title>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">11063</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body></body>
      <body-html></body-html>
      <closed type="boolean">true</closed>
      <created-at type="datetime">2009-05-21T19:06:32-04:00</created-at>
      <creator-id type="integer">11063</creator-id>
      <diffable-attributes type="yaml">--- 
:state: new
</diffable-attributes>
      <milestone-id type="integer">40246</milestone-id>
      <number type="integer">4</number>
      <permalink>fwd-rical-another-small-problem</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">30941</project-id>
      <state>resolved</state>
      <tag nil="true"></tag>
      <title>Fwd: [RiCal] Another small problem</title>
      <updated-at type="datetime">2009-05-21T19:06:36-04:00</updated-at>
      <user-id type="integer">11063</user-id>
      <user-name>Rick DeNatale</user-name>
      <creator-name>Rick DeNatale</creator-name>
      <assigned-user-name>Rick DeNatale</assigned-user-name>
      <url>http://rick_denatale.lighthouseapp.com/projects/30941/tickets/4</url>
      <milestone-title>0.0.9</milestone-title>
    </version>
  </versions>
</ticket>
